package com.spzx.service.order;

import com.spzx.common.service.anno.EnableUserTokenFeignInterceptor;
import com.spzx.common.service.anno.EnableUserWebMvcConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableFeignClients(basePackages = {
        "com.spzx.service.cart.client",
        "com.spzx.service.user.client",
        "com.spzx.service.product.client"
})
@EnableUserTokenFeignInterceptor
@MapperScan("com.spzx.service.order.mapper")
@ComponentScan("com.spzx")
@EnableUserWebMvcConfiguration
public class SpzxServiceOrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpzxServiceOrderApplication.class, args);
    }
}